package com.example.campustalent.bean

import android.os.Parcelable
import com.litesuits.orm.db.annotation.Column
import com.litesuits.orm.db.annotation.PrimaryKey
import com.litesuits.orm.db.annotation.Table
import com.litesuits.orm.db.enums.AssignType
import kotlinx.android.parcel.Parcelize

/**
 *@author: wangtianxiong
 *@time: 2022/3/16
 *@describe:
 *
 */
@Parcelize
@Table("favor")
class FavorBean : Parcelable{
    // 指定自增，每个对象需要有一个主键
    @PrimaryKey(AssignType.AUTO_INCREMENT)
    var id: Int = 0
    @Column("favor")
    var favor: Boolean = false
    @Column("collection")
    var collection: Boolean = false
    @Column("name")
    var name: String? = null
    @Column("title")
    var title: String? = null
    override fun toString(): String {
        return "FavorBean(id=$id, favor=$favor, collection=$collection, name=$name, title=$title)"
    }


}